{* Smarty *}
<div id="main_header">{t}{$command}{/t}</div>
{if !empty($msg)}
	<div id="error"><tt>{$msg}</tt></div>
{/if}

{if isset($result)}
<div class="box">
	<table cellspacing="0">
		<tr>
			<th>{t}config{/t}</th>
		</tr>
		<tr>
			<td class="success"><a class="success" href="{$smarty.server.PHP_SELF}">{t}config saved{/t}</a></td>
	  </tr>
	</table>
</div>
{else}

<form {$form_data.attributes}>

<!-- Site -->
<div class="box">
	<table cellspacing="0">
		<caption>{t}caption site{/t}</caption>
		<tr>
			<th>{t}config site{/t}</th>
		</tr>
		<tr>
			<td class="form">
				<table class="form">
					<tr>
				 	  <td class="form">{$form_data.site_name.label}</td><td class="form">{$form_data.site_name.html}</td>
					</tr>
					<tr>
				 	  <td class="form">{$form_data.site_slogan.label}</td><td class="form">{$form_data.site_slogan.html}</td>
					</tr>
					<tr>
				 	  <td class="form">{$form_data.site_language.label}</td><td class="form">{$form_data.site_language.html}</td>
					</tr>
					<tr>
				 	  <td class="form">{$form_data.site_theme.label}</td><td class="form">{$form_data.site_theme.html}</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>

<!-- Email -->
<div class="box">
	<table cellspacing="0">
		<caption>{t}caption email{/t}</caption>
		<tr>
			<th>{t}config email{/t}</th>
		</tr>
		<tr>
			<td class="form">
				<table class="form">
					<tr>
				 	  <td class="form">{$form_data.email_from.label}</td><td class="form">{$form_data.email_from.html}</td>
					</tr>
					<tr>
				 	  <td class="form">{$form_data.email_fromname.label}</td><td class="form">{$form_data.email_fromname.html}</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>

<!-- Login -->
<div class="box">
	<table cellspacing="0">
		<caption>{t}caption login{/t}</caption>
		<tr>
		  <th>{t}config login{/t}</th>
		</tr>
		<tr>
			<td class="form">
				<table class="form">
					<tr>
						<td class="form">{$form_data.allow_signup.label}</td><td class="form">{$form_data.allow_signup.html}</td>
					</tr>
					<tr>
						<td class="form">{$form_data.allow_force_login.label}</td><td class="form">{$form_data.allow_force_login.html}</td>
					</tr>
					<tr>
						<td class="form">{$form_data.avoid_logging_twice.label}</td><td class="form">{$form_data.avoid_logging_twice.html}</td>
					</tr>
				</table>
			</td>
    </tr>
	</table>
</div>

<!-- Submit -->
<div class="box">
	<table cellspacing="0">
		<tr>
			<th>{t}config submit{/t}</th>
		</tr>
		<tr>
		  <td class="form">
				<table class="form">
					<tr>
						<td class="center">{$form_data.btn_Submit.label}{$form_data.btn_Submit.html}</td>
					</tr>
					<tr>
	  				<td class="center">{$form_data.requirednote}</td>
  				</tr>
				</table>
			</td>
		</tr>
	</table>
</div>

</form>
{/if}